package BankingApplication;

import BankingApplication.Transaction.TransactionType;

public class CheckingAccount extends Account{
	
	
	public CheckingAccount (int accountNum, AccountOwner owner, double startBal, double minBal) 
	{
		super(accountNum, owner, startBal);
		this.accountType = AccountType.CHECKING;
		minBalance = minBal;
	}	
	
	public double writeCheck(Transaction trans, int checkNumber)
	{
		balance = trans.doTransaction(TransactionType.WITHDRAWAL, checkNumber);
		return balance;
	}	
}
